<!DOCTYPE html>
<html>
<head>
<title>Connectez-vous</title>
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<!-- Bootstrap -->
<link href="css/bootstrap.min.css" rel="stylesheet" media="screen">
<!-- My style -->
<link href="css/bootstrap.css" rel="stylesheet" media="screen">
<link href="css/login2.css" rel="stylesheet">
</head>
<body>


	<div class="container">
		<div class="row">
			<div class="col-sm-6 col-md-4 col-md-offset-4">
				<div class="account-wall">

					<img class="profile-img" src="img/zodio.gif" alt="">
					<!-- faire le traitement avec test si commercant ou  ou si erreur-->
					<form class="form-signin" method="post"
						action="./action/authentificationAction.php">
						<p>
						<?php
						// Traitement message erreur
						require_once ("./enums/enums.php");
						session_start ();
						echo '<input type="text" class="form-control" placeholder="Login" name="login_responsable" id="login_responsable" required autofocus>';
						$erreur = isset ( $_SESSION ['messageErreur'] );
						if ($erreur != null && $_SESSION ['messageErreur'] == MAUVAIS_LOGIN) {
							echo '<FONT COLOR="red">Votre login est incorrecte</FONT>';
							$_SESSION ['messageErreur'] = null;
						}
						
						echo '<input type="password" class="form-control" name="password_responsable" id="password_responsable" placeholder="Mot de passe" required>';
						
						if ($erreur != null && $_SESSION ['messageErreur'] == MAUVAIS_PASSWORD) {
							echo "<FONT COLOR=\"red\">Votre mot est incorrecte</FONT>";
							$_SESSION ['messageErreur'] = null;
						}
						?>
					                <button class="btn btn-lg btn-primary btn-block"
								type="submit">Valider</button>
						</p>
					</form>
				</div>
			</div>
		</div>
	</div>

</body>
</html>